package com.panshi.api;


import com.panshi.util.CommonResult;
import com.panshi.bean.PageSizeVO;
import com.panshi.bean.QuestionVO;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "zhangkai")
@Api("问题接口")
public interface QuestionPoth {

    @PostMapping("/queQu")
    @ResponseBody
    public List<List<QuestionVO>> findQueQuery(@RequestBody PageSizeVO pageSizeVO);

    @DeleteMapping("/queDe/{cid}")
    @ResponseBody
    public CommonResult<String> delectQue(@PathVariable int cid);

    @GetMapping("/queDeNo/{qidno}")
    @ResponseBody
    public CommonResult<String> updatequeNo(@PathVariable int qidno);

}
